<template>
    <el-card class="box-card content-margin">
        <div slot="header">
            element-admin模板
        </div>
        <el-form :model="form" label-position="top" >
            <el-form-item label="用户名">
                <el-input v-model="form.name"></el-input>
            </el-form-item>
            <el-form-item label="密码">
                <el-input type="password" v-model="form.password"></el-input>
            </el-form-item>
            <el-form-item style="text-align:center">
                <el-button type="primary" @click="onSubmit" style="background:#609ab6">登陆</el-button>
            </el-form-item>
        </el-form>
    </el-card>
</template>
<script>
    export default {
        data() {
            return {
                form: {
                    name: '',
                    password: '',
                }
            };
        },
        methods: {
            onSubmit() {
                window.router.push({path: '/basic/layout/'});
            }
        }
    }
</script>
<style>
.el-card__header{
    padding:0px;
    border-bottom:1px solid #D3DCE6;
    box-sizing:border-box;
    line-height:3;
    background:#417690;
    text-align:center;
    color:#fff;
}
</style>